﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RelationExpertSystem.Relation
{
    public class Father : RelationBase
    {
        private static Father _singleton = new Father();
        public static Father Instance
        {
            get { return _singleton; }
        }

        private Father() { }

        public override bool IsRelated(Person a, Person b)
        {
            // b is a's father IFF DEFINED
            return b == a.Father;
        }

        public override IEnumerable<IRelation> GetDependencies()
        {
            return new HashSet<IRelation>();
        }
    }
}
